import request from '@/utils/request'

// 查询课程信息列表
export function listCourseAll(query) {
  return request({
    url: '/course/courseAll/list',
    method: 'get',
    params: query
  })
}

export function listAllTeacher() {
  return request({
    url: '/course/courseAll/listAllTeacher',
    method: 'get'
  })
}

export function listAllCoursePart() {
  return request({
    url: '/course/courseAll/listAllCoursePart',
    method: 'get'
  })
}

export function listAllCourse() {
  return request({
    url: '/course/courseAll/listAllCourse',
    method: 'get'
  })
}

// 查询课程信息详细
export function getCourseAll(id) {
  return request({
    url: '/course/courseAll/' + id,
    method: 'get'
  })
}

// 新增课程信息
export function addCourseAll(data) {
  return request({
    url: '/course/courseAll',
    method: 'post',
    data: data
  })
}

// 修改课程信息
export function updateCourseAll(data) {
  return request({
    url: '/course/courseAll',
    method: 'put',
    data: data
  })
}

// 删除课程信息
export function delCourseAll(id) {
  return request({
    url: '/course/courseAll/' + id,
    method: 'delete'
  })
}
